package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcChannelMapper;
import com.csun.cmny.provider.model.domain.OmcChannel;
import com.csun.cmny.provider.model.dto.channel.ChannelQueryDto;
import com.csun.cmny.provider.service.OmcChannelService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcChannelServiceImpl extends BaseService<OmcChannel> implements OmcChannelService {

    @Resource
    private OmcChannelMapper omcChannelMapper;
    @Override
    public Integer insertChanner(OmcChannel omcChannel) {
        return omcChannelMapper.insertSelective(omcChannel);
    }

    @Override
    public List<OmcChannel> selectChannel(ChannelQueryDto channelQueryDto) {

        return omcChannelMapper.selectChannel(channelQueryDto);

    }
}
